package com.yantong.service.impl;

import com.yantong.mapper.CentreTokenMapper;
import com.yantong.pojo.CentreToken;
import com.yantong.service.CentreTokenService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Service实现类
 *
 * @author Kyle
 * @email 572001183@qq.com
 * @date 2019-02-19 10:48:54
 */
@Service
public class CentreTokenServiceImpl implements CentreTokenService {
    @Autowired
    private CentreTokenMapper centreTokenMapper;
    private static final Logger LOGGER = LoggerFactory.getLogger(CentreTokenServiceImpl.class);


    @Override
    public int save(CentreToken centreToken) {
        return centreTokenMapper.save(centreToken);
    }

    @Override
    public int update(CentreToken centreToken) {
        return centreTokenMapper.update(centreToken);
    }

    @Override
    public int delete(Long id) {
        return centreTokenMapper.delete(id);
    }

}
